﻿using System;

namespace ISHotelApp.Database
{
    public class DbTable
    {
        internal static Database mDatabase;
        protected String mTableName;
        
        static DbTable()
        {
            mDatabase = new Database();
        }

        public DbTable(String tableName)
        {
            mTableName = tableName;
        }

        internal static void SetDatabase(Database db)
        {
            mDatabase = db;
        }
        internal static Database GetDatabase()
        {
            return mDatabase;
        }

        public String GetTableName()
        {
            return mTableName;
        }
    }
}